package org.ainlolcat.ainscience.statistics.handlers.hitran.soax;

import org.ainlolcat.ainscience.statistics.handlers.hitran.instfunc.InstrumentalFunction;
import org.ainlolcat.ainscience.statistics.handlers.hitran.SpectrGenerator;
import org.ainlolcat.ainscience.statistics.handlers.hitran.SpectrTemperatureFinder;

import java.io.IOException;

/**
 * @author ainlolcat
 *         Date: 5/1/13
 */
public strictfp class AxSpectrTemperatureFinder extends SpectrTemperatureFinder {
    protected double[] getSpectr(double T, InstrumentalFunction func,double[] x, double[] y) throws IOException {
        SpectrGenerator sg = new SpectrGenerator();
        double[] result = sg.getAxSpectr(T,func, x ,y);
        shifts.put(T, sg.getShift());
        return result;
    }
}
